<?php
include_once('ClsSebent/config.php');

$newP=($P=='Y')?'N':'Y';
$qry="UPDATE reseller SET uploads='$newP' where site_id=$_SESSION['SITE_ID']";
mysql_query($qry);
//echo $qry;
if($pg=='M')
header('Location: maintenance.php?site_id=101&rid='.$_SESSION['SITE_ID']);
else
header('Location: upload_per.php?site_id=101');
?>